package cn.jsp.listener;

import jakarta.servlet.annotation.WebListener;
import jakarta.servlet.http.HttpSessionAttributeListener;
import jakarta.servlet.http.HttpSessionBindingEvent;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@WebListener
public class SessionAttributeLogListener implements HttpSessionAttributeListener {
    @Override
    public void attributeAdded(HttpSessionBindingEvent event) {
        log.debug("new 属性 {}-{}",event.getName(),event.getValue());
    }
}
